/**
 * 
 */
package info.sswap.ontologies.modularity;

import java.net.URI;

/**
 * A simple class which associates terms with defining ontologies
 * 
 * @author Pavel Klinov
 *
 */
public class TermOntologyPair {

	private final OntologyDescriptor mOntoDescriptor;
	private final URI mTermURI;
	
	public TermOntologyPair(URI termURI, OntologyDescriptor descr) {
		mOntoDescriptor = descr;
		mTermURI = termURI;
	}
	
	public TermOntologyPair(String termURI, OntologyDescriptor descr) {
		this(URI.create(termURI), descr);
	}
	
	public OntologyDescriptor getOntologyDescriptor() {
		return mOntoDescriptor;
	}

	public URI getTermURI() {
		return mTermURI;
	}
	
	public String toString() {
		return "<" + mTermURI + ", defined in: " + mOntoDescriptor + ">";
	}
}
